package lab02.test02;

public class Circle {
    //属性
    float r;
    public static final float PI=3.1415f;


    //行为
    public void area() {
        float ar;
        ar = PI * r * r;
        System.out.println("圆的面积为：" + ar);
    }

    public void perimeter() {
        float pe;
        pe = 2 * PI * r;
        System.out.println("圆的周长为：" + pe);
    }

}
